<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateVisitorTypeSetTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('visitorTypeSet', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('cmpId')->comment('公司ID');
            $table->integer('visitorTypeId')->comment('访客类型ID');
            $table->string('typeName')->comment('类型名称');
            $table->tinyInteger('isHidden')->comment('开关,0为关闭1为开启');
            $table->tinyInteger('type')->comment('是否为下拉框,1为下拉框');
            $table->tinyInteger('isRequired')->comment('是否必填，1为必填');
            $table->tinyInteger('typeSign')->comment('1拍照，2,性别,3公司，4邮箱,5同行人数，6身份证，7备注');
        });
        DB::statement("ALTER TABLE `visitorTypeSet` comment '访客类型设置表'");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
